package com.jason.fegin;

import com.jason.vo.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-code")
public interface CodeFeignClient {

    @RequestMapping("/code/check")
    Response checkCode(@RequestParam("email") String email,
                       @RequestParam("code") String code);
}
